A spectroscope is used to determine a star's composition by separating white light into a spectrum of colors to analyze each element's unique black-line fingerprint. The document discusses using a spectroscope to examine light from stars and determine what elements they contain.