|may be it helps..|
assuming all the computers are part of the same domain, might this helps.
net view ..store the result in a text file
get input from user and then search for the string in that text file..
or instead of using text file u can pipe the input as well..
net view | findstr /i "userinput"
Try it and let us know if questions