Thanks for the very detailed answer! For what it's worth, I've found "smbtree -NS" seems to give the output I'm looking for. Now I'm just looking for a more programmatic interface to get that same information. :)