sp_validatelogins

Want to know which deleted windows user accounts still have entries in the SQL Server system tables?

 EXEC sp_validatelogins

MSDN article on sp_validatelogins.