command line: unmount a smb network drive
umount is the opposite of mount. You'll need to know the name of the mount point - that is, the name in /Volumes that corresponds to that network drive.

umount /Volumes/VolumeName


Per man umount, umount may fail for any number of reasons, and the recommend command is instead diskutil:

diskutil unmount /Volumes/VolumeName