What qualifies as higher education to avoid 10% early withdrawal penalty from my IRA

I took money from my IRA to pay off some debt. My wife is currently in school and we are using student loans to pay for school. Can I use the cost of her tuition for high education deduction to lower the amount I have to pay the 10% penalty on?