Product availability based on user location

We currently ship all orders, including international orders, out of a single US fulfillment center but will soon be transitioning to having a second fulfillment center in the UK for any European orders. These centers will have separate inventories.

My question is: is there a way display on the frontend for customers a product is available or sold out based on where they are / what fulfillment center their order will ship from?

So ideally, a way to check the user location → check the product inventory in the closest fulfillment center → and then display product as available / unavailable based on the closest fulfillment center’s inventory.

For example, if Product A is available at the US center but unavailable at the UK center, we would like to automatically show the product as unavailable (i.e. they are not able to add it to cart) to any site visitors in Europe whose orders will presumably be shipping from the UK center.

The store is on Shopify Plus.