You can check the tags if the dog has any. That would be a dead giveaway they belong to someone. The other thing you can do is take the dog to a vet and have them scanned for a microchip.