What HSA deduction?

Both joint taxpayers have an HSA account. One taxpayer has family coverage,  but the spouse is not included, only the children, and $6,900 is the Code W on the Form W-2. The spouse also has HSA account and the form W-2 Code W is $3,450. Is there an access HSA contribution of $3,450 on the joint return? Assuming the answer is yes, what happens next year when the spouse pays medical expenses from the HSA?