They get stored in System Catalog Views sys.server_principals and sys.sql_logins.
Are there User Defined Data Types in SQL Server? How can we create and use them?