In order to do that you'll first need a "copy" of the server map (not the minimap), which has all the objects (tiles, walls, trees as well as movable stuff like crates, boxes, etc) in their default position. As far as I know this kind of updated data is not available for the public anywhere.
The second step would be creating a script to look for the desired ID, which shouldn't be a problem for anyone that manages to get the map data by themselves.
The second example you gave is a different scenario. In that case, TibiaMaps.io's admin only analyzed the minimap path files (which you can download from the fansite or simply check in your installation folder), which exist exactly to register what tiles are walkable or not. The minimap files do not save the objects in that position so you can't use them to look for specific objects.