At the point where your screen warns to "Press F2 to enter Setup …. Press F1 to continue", the machine is operating from the Basic Imput Output System (BIOS) and no device Drivers nor components of Windows have yet become active.
It is "possible" that the CMOS battery (shiny flat round object about the size of a US nickel) has died, thereby BIOS has lost the initial default settings.
It is also "possible" that your machine is suffering an immediate over-heating problem at the CPU or less likely at the onboard graphic or graphic card location.
Less likely, but still "possible' is that one or more of your RAM sticks is failing.
Since all of the above do involve the Motherboard, it is "possible' that the Motherboard is failing
And "possibly" since all of the above require power, it is possible that your PSU is faulty (though the PSU is more likely to totally work or not work).
Certainly there are other "possible" causes, but they become "less likely" because faulty or corrupt drivers have not yet loaded and faulty or corrupted Windows files (for instance from malware) have not yet come into play.
______________________
Other than what ports seem to be failing, you haven't told us much about your machine.
What brand/model?
What CPU and how much RAM?
Is there a discrete graphics card or are you using onboard graphics solution
How old is the machine?
What has it been used for? (browsing, email, office functions, movie viewing, gaming)
Has the machine ever been over-clocked?
Were there other tell-tail symptoms appearing progressively before the present failures occurred?
Can you hear the Fans spinning?
Can you hear the Hard Drive start up and does the HD active light come on or blink when booting?
During Boot, does the screen display enumerating the RAM, identifying the HD and optical drive, keyboard, and mouse?
(might not display anything if the BIOS is set to bypass those reporting features)
Can you get into the Computer Setup (BIOS CMOS setting options)?
How long has it been since you blew out the dust-bunnies from inside of the case?
What physical inspection of the case interior have you conducted to assure connectors are firmly seated?
What "changes" might you have made recently?
– New RAM?, New PCI card? New Graphics card? New anything else?
What recent events have happened?
– Power surge? Brown-out? Unexpected total shutdown. Lightning in the neighborhood?, Problems with the household wiring? Drop or movement of the computer case?
– New appliances on the same circuit? Old appliances (particularly refrigerator) on the same circuit?
____________________
How technically skilled, familiar and comfortable are you with opening up the case to visually inspect the interior?
Are you familiar with electrical and static electricity safety precautions?
(If not, we may be done here, and you may benefit from taking the machine to a local tech shop)
If I'm mistaken about the above, and your machine is actually loading drivers and attempting to load Windows, but failing at that point, you can run a simple test by using a CD based Linux operating system such as Linux Puppy which operates completely from Optical Drive plus RAM (thereby bypassing the Hard Drive and any related problems with Windows and drivers)
If you do attempt to boot with Linux Puppy and it is successful, then one or more of your normal drivers is corrupt or one or more Windows system files is corrupt.
Have a look here, with a second known-good machine:
http://puppylinux.org/main/Overview%20and%…g%20Started.htm
In order to boot Linux Puppy from CD, you will have to adjust the Boot Order to first load from Optical Drive.
If you are able to boot from Optical Drive, then it would also be possible to run a RAM Memory Diagnostic with either
MemTest86 or
Microsoft Memory Diagnostic.
I realize that the above is "a bunch" of considerations.
But you've given us very little to work with so far, therefore I'm covering a lot of bases.
Please respond back to the questions you are able, and ask questions where necessary.
Do not open the computer case, nor touch or make changes inside of the case unless you have at least basic understanding of the mentioned precautions.
Best Regards,