It is impossible to check whether the water is hard by using a detergent because the detergents are made of ammonium salts or long carboxylic acid sulphonates. Unlike soaps do not work with calcium and magnesium to separate the nature of water.
Would you be able to check if water is hard by using a detergent?
Would you be able to check if water is hard by using a detergent?