To claim the exception to the 10% early withdrawal penalty you will have to file Form 5329 with your return. The code that you should enter on Line 2 of the form is 08.
http://www.irs.gov/pub/irs-pdf/f5329.pdf
http://www.irs.gov/pub/irs-pdf/i5329.pdf
Enrolled Agent
EA, QPA, CHFC, CEBS, CLU - 29 years experience providing financial advice