State 2-digit ISO code in the order checkout form

Hi!

I’m developing an e-commerce website for a client who’d like to have several integrations for their orders. To make the integrations work, they need to allow only two-digit ISO codes for the state field in the shipping address. How can I achieve that?

Thank you in advance for your help!