We do not provide help here with a forgotten password because we have no way to confirm the computer's true owner or the reason for wanting to access it.
If you mean a computer that had Windows 8 pre-installed you can try the Recovery partition or just install the correct version of Windows 8.1. The Product Key is on a chip embedded in the motherboard.So he has a Windows 8 PC