How to get inventory of a product from all locations in product template

Please tell me how to get inventory data(Stock information) for a product for a specific location?