well all you need to do is boot from the installation media and during the installation there is an option to format the drive. if you really want to do it from a command prompt you can do:
where c: is the drive letter of the drive you would like to format.