You should be able to do all of that from the BIOS of a system so without the need to enter the operating system it holds.
I want to just plug in a usb, boot to Ubuntu then it give me the info and then ask to wipe hard drive.
Also a possibility. Create a live session (with persistent storage if you want to create a script with commands) and you can use a couple of commands to get all you want.
These 3 will show lots of info...
sudo dmidecode --type bios
sudo dmidecode --type system
sudo dmidecode --type memory
You can also use >> /dir/persistent/storage/info.txt
behind each of the commands to store the info on the live session.
Formatting a disc is a command too. Have a look at https://askubuntu.com/a/517365/15811 for a couple of methods. One of them will be ...
mkfs -t ext4 /dev/sdb1
This is an example; you need to change /dev/sdb1
to the device that holds the unmounted partitions. It is likely it will be in /media/
with a unique id (UUID) that changes per system so putting it into a script will be difficult (but not impossible).
You really do not want a partition formatted automatically when booting.