We'll have plenty of discussion about obtaining water, and it will most likely involve processing ice-containing regolith. However, drilling for water is also a possibility. To that end, I offer https://www.drillyourownwell.com/ as an initial tutorial on how this is done. Deeper wells (which we'll need on Mars) are more complicated, but this is a good start on the basics.