Is there a way to list the network shared items in the Terminal command line the way Finder sees them in the Mac OS X GUI?
In terminal, use
ls to get a directory listing.
The mounted volumes are under
/Volumes so you want to use
ls /Volumes to see the attached network drives.
EDIT based on OPs comment
ahh, so you want to see a listing of the servers available (or more accurately, the servers which are registered for discovery). I believe the 'Networks' tab reflects Bonjour discovery services.
dns-sd -B _ssh._tcp . or
dns-sd -B _afpovertcp._tcp .
Please note, the man page for
The dns-sd command is primarily intended for interactive use. Because its command-line arguments and output format are subject to change, invoking it from a shell script will generally be fragile.