It wouldn't be like a foreclosure. It would be a foreclosure. However, that's only if your borrower fights it. The first thing to do would be to do a deed-in-lieu of foreclosure. If you and your borrower agree to that, they would give you a deed to the property and you would release the lien.
If they won't agree to that, or perhaps if you feel like you can get more out of them or the property at auction, you would have to do a foreclosure. You're going to need an attorney. Every state has a process, and you'll have to work through that process.
Being able to get any money from them would depend on their circumstances. If you think there is money to be had, you might ask for a deed and some cash as your starting point. If they don't have cash, you might be just as well off to take the property and be done with the whole deal.