Probably more than one way to do it. Off the top of my head, a net use would list the network drives so if it's on the list...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.