with a lambda sensor or other exhaust gas analyser
the colour of the plugs or exhaust pipe can give you a clue, but that is a combination of mixture and ignition timing so you have to know what you're looking at. also depends on the last running condition.