I would check with a real estate attorney. As far as I know there was a period of time to cure the default of the loan. If you have gone beyond that point , you may have no recourse. If you have any questions feel free to contact me via email firstname.lastname@example.org, Good luck.
You can't get a loan for quite sometime now that you are foreclosed. The lender also will have big problem with you buying it back while just claimed you could not afford paying the mortgage on the house.
It will be pretty difficult to get the same house back unless you have great reasons to support your actions before and now.