On the PC or laptop, as anonymous1 mentioned, if you are talking about the operating system installation product key code.
If you are talking about trying to get onto a wireless network that is asking you for a security key, then you can get it from a pc/laptop that is connected to that wireless network.