Retrieve product id (uuid) of downloaded products

Hi,

I have a bunch of Sentinel-1 and Sentinel-2 products in my local drive. I would like to retrieve the product id (uuid) of those products, but I cannot find them anywhere in the xml files (manifest.xml and STD_…xml files).

Thank you.