On the water inlet connections on the washing machine there should be the letter H and C stamped into the metal by either next to the inlets or above below the inlets.
But usually the top inlet is usually the cold inlet and the bottom inlet should be the Hot inlet.