For your Windows key, if the laptop came with Windows 8 and there is a windows logo sticker on the bottom then the windows key is stored on the motherboard. This can be retrieved with some tools.
For Windows itself, you can simply put an .iso on an usb stick and reinstall Windows from that.
So you can safely wipe the whole disk. But only if you are 100% certain that the key is baked onto the motherboard. Use this tool to retrieve the key from your Windows installation.