Well you never get any extra money back.....
But normally there is no extra money.
By the time the attorneys get paid for all the foreclosure work, realtors, title companies, back taxes, insurance, make ready, lock change, cleanup, repairs, and everything else, it would likely have eaten up any extra.
Sounds like you should have tried to sell it on your own. Sounds like that might have been the best course of action, or perhaps a short sale.
Sorry this has happened to you. There are millions of other people in the same situation.