To download the Windows 10 install media creation tool
get it from here. You will need a 16GB or 32GB USB stick which will be erased. This is more flexible if you have a pile of laptops to fix, some of which may not have optical drives like those two.
If you'd rather make a DVD install disc, either visit the same site using a non-Windows computer/phone, or temporarily
set your browser to report a different OS. It will then allow you to download the .iso file, which any DVD burning software can turn into a working Windows install DVD, when you supply a blank DL DVD. Laptops of similar vintage should be able to boot from an external USB optical drive too.
Now you have a universal tool to fix Windows laptops. You will need to set the BIOS to boot from USB or DVD before the HDD to boot from it. For Toshiba laptops it's usually holding down either F2 or Esc right before it boots to enter the BIOS. Personally I would first put the HDDs back to the way they were before.
I have a working Commodore 128 setup which can boot into C64 mode. Like a modern phone the OS is stored in ROM--but unlike the phone there's no internal storage to save changed settings, so every boot is essentially a "reset." You can actually setup a Windows machine to work a similar way--it's called Kiosk mode for a public computer anyone can use, which forgets any changes the last user applied. But the normal way is to simply install Windows and when it breaks to reinstall it.