The query command should be just what you're looking for! If it wont work, try this;
Click
here and download the file (query.exe) to c:\windows\system32. Then go back to the CMD line and retry that command. I'm 99% certain that this will solve your problem.
Let me know how you go on.