Survey of ultra-high-energy gamma-ray emission in the Magellanic Clouds