Is there a command that I can use to display all ores, meaning that when I press a button that displays everything like Xray
Not a command, but there are mods for it
Nope, but you can download the xray mod
You can determine the coordinates with testfor. But is complexx u. Annoying. Prefer xray texturepack.