Right click the wifi icon on the bottom right hand corner. Click on Open Network and Sharing Center. Under Connections: click the network you are connected to. Click Wireless Properties, open Security tab and select Show Characters. The Network security key will show your password.
I've never done it on an out of range network, so not sure about that, try looking under Manage WiFi Settings