The best way to do this is to check their DNA. If their DNA matches, that is, if it's similar, then they belong to the same species and this usually means that they are closely related. Sometimes they might not be the same species but still be closely related, like cats and lions which are both feline and it can be seen in their DNA.