What is discharged in bankruptcy is personal liability on the note. The creditor remains free to foreclose their lien interest in the collateral, which may not be a concern for you if you are not residing there. Your bankruptcy will not relieve the ex of personal liability, but that should also not be of concern to you. A bankruptcy will also discharge any liability for his fraudulent activity in your name, but you should consider a more proactive approach to that issue: contempt proceedings in your divorce action, and law enforcement involvement for the identity theft.
Best wishes for an outcome you can accept, and please remember to designate a best answer.
This answer is offered as a public service for general information only and may not be relied upon as legal advice.
I agree with Attorney Sinclair. You should consult with a bankruptcy attorney to get more specific advice based on your circumstances. You should absolutely seek contempt against your ex and file a police report. The debts will be discharged through bankruptcy, but you should also continue to dispute them on your credit reports.
You can file bankruptcy, and you should list all creditors which claim that you owe them money, including the debts improperly created in your name (listed as disputed) and also the mortgage debt. If you have no intention of living in the property, or retaining any interest in it, then you can list it with the intention to surrender the home to the mortgage company. That way, you will lose the home, but will not be liable for any remaining debt owed on the home.