
Modern BIOS (UEFI) interfaces do not have built-in tools to format drives. The BIOS is used to manage hardware settings and boot order, not file systems.
From the Windows installer’s Command Prompt: how to format hard drive from bios
On a working computer:
Once the computer boots from your external media, you aren't yet in the OS; you are in a pre-installation environment. To format without actually installing a new OS: Modern BIOS (UEFI) interfaces do not have built-in
However, you can use the BIOS to boot into a different environment (like a Windows installer or a live Linux USB) that can format the drive. This guide covers that correct process. you aren't yet in the OS