They have computer screens in their cars and they look up the name and it gives them the picture that appears on the licence.
When they realise you don't match they will arrest you and charge you with various offences such as driving without a licence, lying to the cops and whatever else they can think at the time.