You can't do a factory restore from the BIOS, that's nothing to do with your OS. You need to get a copy of windows, if you have a license you can find the media image files for windows 8/8.1 on the Microsft Website - Not sure about Windows 10 files. You may be able to use the automatic repair (which never works, but you might aswell try it anyway). Other than that, you'll have tot reinstall windows.