I was working on a mod and noticed, with the help of the awesome folks in this thread https://forums.bistudio.com/topic/186418-returning-nearest-mine-reliably-around-player/#entry2946952
that there is no proper/easy way to return all mines near a unit.
Larrow has pretty much summed it up in the abovementioned thread.