In the Shopify Admin, go to Settings -> Locations and select the required location. On the next page, you can find the Location ID in the URL. It's the long string of numbers at the end as shown in the screenshot below: