For purposes of the education credits and tuition deduction, the cost of a computer qualifies as an education expense if it is needed as a condition of enrollment.
For more information on qualified education expenses, see the IRS Instructions for Form 8863 Education Credits or IRS Form 8917 Tuition and Fees Deduction.