How to find out which Instanced Static Mesh Component contains an instance at a specified location?

I’m trying to set up a terrain generation script with a selection out of multiple Instanced Static Mesh Component variations (custom subclasses). I wanted to have the terrain smoothly connect, so which ISMC can be placed depends on the ISMC instances on the already filled surrounding fields, while the locations of those fields are well known (current location minus tile size in the particular direction). However, I didn’t find a possibility to figure out which ISMC has an instance placed on that spot. Can anyone help me out on that?

Nevermind, I figured out. I can just iterate over the instances of each ISMC and compare the translations. Might be not quite performant, but it should do for now.