You would have to look at your past tax returns filed while you were in school or the past returns of anyone who claimed you while you were in school to see if you received the credit in the past. The tax return would include form 8863 with entries in American Opportunity Credit section.