In a foreclosure, it is like the wording in a warranty deed. You only foreclose on whatever rights, title or interest the owner has. If he has deeded away the minerals, he has no right, title or interest in them. Like HT said, if they were conveyed with the deed, then, yeah they would go with the foreclosure.
I am no lawyer, but I have dealt with this recently.