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. :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba