Look for an application in the Utilities folder called Disk Utility. You can then erase a hard drive from there.
You cannot overcome the password problem. That is why they have the password there in the first place - security reasons.
You cannot format the disk that the running OS is on.
Get the Mac OS X installation CD / DVD then initialise the disk using that. You can also reset the admin password using the utility in the CD / DVD.