Exposure to heavy metals such as lead, cadmium, and mercury can potentially influence kidney stone formation. These metals can cause kidney damage, affecting the organ's ability to process waste and potentially leading to stone formation. Cadmium, in particular, has been studied for its role in increasing calcium excretion, which can contribute to stone risk.