Answer:
Actually there are plenty methods
such as proceeding,
genetic screening
PCR
fluorescence screen
electrophoresis
and after to compare the amino acid sequences and the DNA base triplets(codons) of the relevant samples.
if it matches well it concludes that they are closely related
if atleast a small % of similarity is visible they may/can conclude that there was a connection between them in the past(ancestor).