Could the US government take the proceeds from the sale of you home if you have a judgment against you because of a student loan and you filed bankruptcy?

Yes. Federally funded student loans are not dischargeable in bankruptcy.