If you've never milked cows, it may be hard to tell, but happy cows are very obvious if you know what you're looking for.
It should also be noted that stressed cows produce less milk, so it's economically advantageous to keep the cows happy.