Yes, mortgage interest can be deducted for two homes. And, if you are filing separately, you both will need to itemize deductions anyway on your federal returns (meaning one can't take the standard deduction and the other itemize.)
Here is more information on the mortgage interest deduction:
https://ttlc.intuit.com/replies/3300473