You can also read the value in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

DefaultUserName contains the name of the last logged on user. In Windows 2000, this could be the UPN version of the username (user@domain.com).

If you have the policy to clear username of last logged on user, this will not be here.