Pull the washer out far enough to see both supply hoses, hot and cold, and the fittings where they meet the wall box. Look at each hose from end to end, then look closely at the spot where it bends. That bend is where wear tends to show first, so give it your full attention.
Signs to note
Note any bulge or swelling in the hose wall, any cracks or chalky patches in the rubber, and any drip or dried mineral trail at a crimp or fitting. Note rust on a metal fitting, a hose that has gone stiff and no longer bends easily, or a hose that rubs against the wall or the back of the machine. Write each sign down with a note of when you saw it.
How to check during a cycle
Stay in the room for the fill part of a cycle. Watch both connections and the floor beneath the machine. A slow weep is easy to miss from the doorway, so place a dry paper towel under each fitting before the cycle and check it again afterward. A dry towel, a dry floor, and no change at the fitting mean the hose is holding for now.
Plan the replacement with the record
Find the install year of the washer on its data plate or in your records, and treat that year as a planning input for the hoses as well as the machine. Read the clothes washer guide on this site for typical service life and when to plan. Then decide whether the hoses should be replaced at the same time as a service visit. Ask whether the replacement hoses are rubber or braided, and confirm the fitting size before you order. Keep the old hoses until the new set has run through a full cycle, so you can compare them side by side.