Check the US consulate in Mexico for information about visas for third country nationals (TCN):
http://guadalajara.usconsulate.gov/visas/visa-types/visas-for-non-mexican-nationals.html
http://tijuana.usconsulate.gov/niv.html
Make sure that you can change from an H4 to F1 visa in Mexico without any issues.