Optical drives let your computer read and interact with discs like CDs, DVDs, and Blu-rays. However, they're quickly becoming outdated.
To format a hard drive before you start using it in Windows, use the Disk Management utility; on a Mac, use Disk Utility.