DON'T....
Don't use a cold-water supply pipe leading to the water heater. A properly-installed water heater has a grounding system necessary to its operation, and installing another ground in this area could conceivably interfere with the one for the water heater under certain conditions. BTW, this is true for both electric and gas water heaters, though the grounding system is different for gas.
The one leading to the washer is fine.