Check for tags
If the pet doesn’t have an ID tag, are they wearing a local license or rabies tag? Those can be used to find the owner. You can call the number on the tag, or you can take the pet to a veterinary office so they can scan them for a microchip.