You may be able to file for reinstatement, as long as you did not engage in unauthorized employment.
The above is intended only as general information, and does not constitute legal advice. You must speak with an attorney to discuss your individual case.
2 years of having been out of status is a long time. Usually it is easier to renew your F1 status if you've only been out of status for 5 months or less. Contact an immigration attorney directly, and work closely with the DSO of the school where you are intending to enroll.
Gunda J. Brost Brost Law Office This advice does not form an attorney-client relationship and is merely informative. It should not by itself be relied upon to address a legal concern.