SMBTree is a terminal program that can be used to view all the SMB domains, servers and shares visible on the network. Its display is similar to what is seen in Network Neighborhood in Windows.
It ships in the smbclient package, so to install it:
$ sudo apt install smbclient
To view the SMB network:
$ smbtree
Tried with: SMBTree 4.1.6 and Ubuntu 14.04