If you find a fossil on Gen 5, you can take it to the Fossil Lab in the Nacrene City Museum. The scientists there will be able to identify it and tell you what kind of Pokémon it came from.