You may get the password from using ‘netsh’ windows command. First go to your windows 10 search box, and type ‘cmd’
Now, from the result, there should be an option called ‘Command Prompt’, right click on it, and ‘Run as administrator’. Now on the black command prompt, type the following:
netsh wlan show profile "your wifi name" key=clear
Replace the part “your wifi name” with your one. So, for example if you connect to a wifi connection that has a name ‘Mellowhost_Portable’, then the command should be like the following:
netsh wlan show profile "Mellowhost_Portable" key=clear
This shall show you the full profile of your wifi details, including the password. Password should be available under the ‘Security Settings’, inside the ‘Key Content’ section.
Hope it helps.