How do we get the information of locations that are mapped to a particular product.

Hi Community, In Shopify store, we do have the option of selecting locations while creating a product as shown in the image above. How do I get the location Ids of all the locations to which a product is added. Is there any API or web hook I can use to the location Ids using the product Id?

Also is there a way to get the location for a particular Order Id ? (Assuming that all the products in this order are set to be fulfilled from a single location). Any help regarding the APIs or pointing me in the right direction would be much appreciated. I could not find any references to what I want to achieve in the current documentation. Thanks !