Install nmap if you don't already have it on your Linux computer. Run "sudo apt-get install nmap" on Ubuntu, or "sudo dnf ...
You can find all your saved Wi-Fi passwords in Windows 10 directly within the computer's Settings menu.
You can see your Wi-Fi password on a Mac as long as you're already connected to that network. Here's how to access your saved Wi-Fi password on a Mac.