I get a blue screen then my pc reboots when trying to load windows in any mode

I'm trying to reinstall windows but I need to format my D: drive because there's no space on either of my two drives, but when I try to it says press F to format C drive, when I want it to format the D one lol, can anyone help? Thanks