a) To view the Wi-Fi password or security key for the active connection, open Network and Sharing Center in the Control Panel.
b) Click the Wireless Network Connection
c) Then Click on Wireless Properties, and click the Show characters check box.
P.S. This works on computers before Windows 8
WirelessKeyView utility from NirSoft recovers all wireless network security passwords stored in your computer