How do you differentiate soft and hard water?
Hard water contains impurities, so it would be denser. Perhaps a separation through density could be your answer? You could also insert sodium ions so that it becomes soft water.