I don't know much about SMB, but unless it's api is over http/https then AFAIK, no it wouldn't work. You might be able to get away with TCPSocket but it's super draft phase and no browser supports it. This means there isn't a direct way to directly connect to sockets over TCP, and UDP has been a problem here too (Games like agar.io can't use it.)
Maybe there's a new way to do it I haven't heard of, but that was the state of things last time I checked.