Why would it be hazardous? Sand is sand and the paint would have come off naturally over time by itself.

You can strain the media through a screen and discard of the larger particles in a environmentally approved manner and then dump the sand.