You need to go over your fact pattern with a BK attorney.
I think the chances are good that you will have to pay for an appraisal of the house. IL exemptions are puny, but, if you have very little equity in the house, the US Trustee will have no interest in liquidating it to pay your creditors. It then becomes whether you can afford the house given the student loan repayments and your other living expenses. If you can't, then you won't be able to keep it regardless.
Your bigger problems may be passing the means test and that 40k of student loan debt. Student loans generally are not dischargeable in bankruptcy. You may have forbearance options with respect to them, but there is only so long that you can put them into forbearance.
Get this stuff explained to you in detail. There is only so much you can learn in forum like this one. Most BK attorney give free or very low cost initial consultations.