How can i retrieve the user logged on to a machine over LAN.

Eg: Entering the pc name and then get the logged on user back as result.

This is urgent...


Thanks alot