The following is for windows.
Open command prompt and run it as administrator
Enter the following command
netsh wlan show profile
This command lists all the network names you have connected and remembered.
then enter the above command along with wifi name and key=clear
netsh wlan show profile netgear72 key=clear
This would display various profile properties in which we can find the password, look out for key content.