You can obtain the metadata of any object using the function present in boto3.Client
get_object_attributes
Read more about it at: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/get_object_attributes.html