How have astronomers learned what different asteroids are made of?
There is no way at the present time to know what asteroids are made of
They measure the x-rays that all asteroids give off
They examine the spectrum of the sunlight that reflects from the asteroid
The only way is to send a spacecraft to each asteroid and bring a chunk of it home
They wait until the asteroid has a tail of gas behind it and measure that tail