Need to do a 24 hour urinalysis and metabolic evaluation looking at calcium levels, electrolytes, urine pH, etc. Different treatments are required for different people to prevent stones. Some medications that help one type of stone may make another type of stone worse so you really need to get evaluated to get good advice.
In general, the top 3 things to prevent stones are fluids, fluids, and (you guessed it) fluids.