Are you asking about taking an Education Credit? The institution must be recognized as eligible to participate in a student aid program Administered by the U.S. Department of Education. Most foreign schools are not.
Please refer to the U.S. Federal Student Aid