Do any other planets have layers like the earth does? How do scientists determine this?
All planets, and moons, are layered. Physics and chemistry determines this.
When stars, planets and moons form, the more dense material always moves towards the core of the object. The earth's core is iron. Jupiter's core contains some rocks and hydrogen metals. But the rest of the planet is primarily hydrogen.