How do you trace a yacht location and flag

How do you trace a yacht location and flag they use