if currently connected to the wifi, just check the properties of the connection, There is an option to show password.
If not connected, but want to check password saved previously, run the below commands. The first one lists the profile names and the second one shows the password.
netsh wlan show profiles
netsh wlan show profile name=WifiConnectionName key=clear