You can't format the drive which contains Windows from within Windows.
You can either boot from an installation disc or restore the factory settings.
The best way is to restore, taking the laptop back to exactly as when you bought it.
One of the two methods below will do the job.
1) Hold down the power button for 10 (ten) seconds to switch off your machine.
2) Press and hold the 0 (zero) key and at the same time, tap the power button once to switch on your notebook.
3) When the machine Starts beeping; release the 0 key.
4) When prompted by the warning screen; select Yes to continue with the system recovery.
5) Select Recovery of Factory Default Software; click Next.
6) Select Recover to out-of-box state click Next again.
7) Click Next to Start recovery.
Or.
Shut down the computer.
Turn the PC back on and hit the F8 key repeatedly until the Advanced Boot Option Screen appears.
Click "Repair Your Computer" if you are not already on it and then press ENTER
choose your country and click OK
On the "System Recovery Options Screen" click "Restore Application" which is the last option.
Follow the on-screen instructions
When prompted, click on "Full Factory Recovery"
"Next"
Click "Yes"
you will notice for a while it seems like nothing is happening, give it some time.
After some minutes, recovery will complete and you click "Finish"