all of the image search paths are in
getenv XBMLANGPATH;
in mel. I believe the are used in the given order so the first path containing the bitmap is the one which you are seeing. You'll need to split the paths (they're bunched by semicolons) and check each one to see where the actual file is.
EDIT note corrected spelling: XBM, not XMB