Unless I’m mistaken, proceeds from a sale of a foreclosure first go to satisfy fees, then the first, and if anything is left only then does the second get paid.
Which means that it is doubtful the second will get anything, requiring the lender on it to let the loan go (writeoff) or sue your brother.
In either case his credit is shot, and purchasing (or even repurchasing the same house) is a near impossibility as nobody will give him a loan.
I’m no financial expert, but perhaps a bankruptcy would be his best option at this point?