Is it possible to get the image fill viewport and size?

Let’s say you have an artboard that has an image that is used over 100 times.

Is there a way to check if the images reference the same image (bitmap data)? Is it then possible to check to see if there is a viewport or if there is any clipping?

It looks like I can use the assetID but that doesn’t tell me about the other details:

A unique identifier for the image asset used by this ImageFill. May be shared by other ImageFills, including those with different cropping, size, rotation, or mirroring. If identical images are imported into XD from separate sources, they may have different assetId s however.

Basically, I want to know if I’m exporting the layer as an image and if I’ve already exported the image at the same size then I can reference that image instead of creating a new one.