If the Windows PC is already connected to that Wi-Fi network, the password can be viewed in either of these ways:
- Open Settings.
- Go to Network & internet > Properties.
- Next to Wi-Fi network password, select Show.
For a saved network, this also works:
- Open Settings.
- Go to Network & internet > Wi-Fi > Manage known networks.
- Select the network.
- Next to Wi-Fi network password, select Show.
Another Windows path is:
- Open Settings > Network & Internet > Status > Network and Sharing Center.
- Next to Connections, select the Wi-Fi network name.
- In Wi-Fi Status, select Wireless Properties.
- Open the Security tab.
- Select Show characters.
- Read the password in Network security key.
After finding it, another device can connect by scanning the QR code if supported, or by entering the password manually.
References: