what OS? If it's Windows 7, and there's a sticker on the side of the case, then you can download and burn an ISO and re-install using the key on that sticker.
If it's Windows 8 or 8.1, you can use MS's site to download recovery media, and then re-install using that. (Should auto-detect the key in BIOS, if it's a branded OEM PC.)