He knows this because he has been told it by his best friend. He also knows that he is married. Again, he has been informed of this by his best friend.