How would you know if someone has oral herpes?

Depends. Either a blood test, or you'll see the get the same sore in the same spot, just a few days after getting tingling there.
Look for a cold sore. The only way to know without actually asking someone if they are infected with hsv is to look for a cold sore on their lip.