telnet <remotehostname> 139 or nmap -p 139 <remotehostname> should do it. For telnet if you get the message 'telnet: Unable to connect to remote host: Connection refused' then the host does not expose samba to you. see more info on how to test port TCP\139 here: superuser.com/questions/769541/…
– Frank ThomasJan 28 '16 at 14:44