You want to format all of the drives?
Then do the below:
Backup your necessary data. Create a bootable usb drive, for reinstalling windows. If you want format all the drive, format all the drives except C drive. Reinstalling Windows in C drive will format the C drive data during installation process.
Good Luck.
Peace.