That would only work if you had admin rights to the remote client. You should look at how some port sniffers do it.

f.e Port 445 is for microsoft-ds so should imply Win2K/XP.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.