The profiles are stored in the reg by their SID.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Windows attempts to resolve the SID which you too can do with the SIDtoName() function.

There are lots of utilities available that cleanup unresolved profiles. One needs to be very careful though since it is entirely possible that a SID that cannot be resolved one minute may be resolved later.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.