You may be able to obtain a mortgage, depending on several factors...
1) If your bankruptcy has been discharged
2) Your credit score is high enough
3) You do not have any additional judgements/charge offs/etc.
You should contact a local lender, and let them run your credit through the 3 credit reporting agencies to give you the green light on purchasing and to give you the price point you are able to purchase.