Vertical CO surfaces as a probe for protoplanetary disk mass and carbon depletion