One of the procedures in identifying the stellar corpses would involve "measuring Doppler shifts in the spectrum of the main-sequence star so that you can determine the mass of the compact object." In addition, the use of advanced measuring devices like a space telescope is most likely used.