How to check if Samba is installed
The easier way is to check with your package manager. dpkg, yum, emerge, etc. If that doesn't work, you just need to type samba --version
and if it's in your path it should work. Lastly you can use find / -executable -name samba
to find any executable named samba. If those test are negative, is highly probable that you don't have samba installed.