There is a whoami command for Windows available in the Resource Kit. Or, you can use set to list the environment variables, of which the username is one.