Smbclient is a tool used to communicate with SMB servers. The following command will list out all available shares on the target server using anonymous login.
Command Reference:
Target: 10.10.10.1
smbclient -N -L //10.10.10.1