Snakes expel their waste from a single opening, called a cloaca. Waste includes feces and urine. Unlike humans, that expel feces and urine separately.
Snakes do not consume a lot of water like most animals, they conserve water by excreting uric acid with little water. The semi liquid substance excreted dries up almost immediately to a white form.
It has always been a wonder for people if snakes urinate or not. They do urinate through an opening called a cloaca. The wastes that passes through this area is not very similar to the urine that humans usually remove from their bodies as the wastes are more dry. Feces and other wastes also pass through this path.
This is considered to be more efficient than actually urinating because they remove their uric acid more and they keep the liquid that their body needs in order to last longer without water. A lot of the wastes of snakes become solid after some time as it already goes out in a semi-solid state. With exposure to oxygen, the wastes take on a more solid form.