Samba smbclient

To list the shares on a Windows server from Ubuntu and Raspbmc:

smbclient -L //windowsservername -U domain/username%password

To connect to a shared folder on the Windows server

smbclient //windowsservername/sharename -U domain/username%password