In Nautilus, you can right click anywhere and click Open in Console, at which point it will open up a terminal leading to a gvfs mount directory.
In KDE, it is slightly more annoying because there’s no right click option to quickly open it in terminal, but like gvfs, there’s a mount directory that you can access at /run/user//kio-fuse-/smb/.