Withdrawing IRA for education tax exempt?

What do I need to do when filing for tax to prevent penalty fee if I were to withdraw 401k for education?