Divorce and HSA contributions

I am covered through my ex-spouse's family health insurance plan. It's a high deductible plan and I'd like to open up my own HSA account and contribute to it. How much is the most I can contribute? I'm not sure if he is contributing to his own HSA account. Would this make a difference to what I could contribute? Thanks.