No, it is not possible. Detergents produce foam in any type of water; whether hard or soft Therefore, a distinction between the two cannot be made. However, soaps can be used for this purpose.