Technology for detecting the magnetization direction of nanoscale magnetic material is crucial for realizing high-density magnetic recording devices. Conventionally, a magnetoresistive device is used that changes its resistivity in accordance with the direction of the stray field from an objective magnet. However, when several magnets are near such a device, the superposition of stray fields from all the magnets acts on the sensor, preventing selective recognition of their individual magnetization directions. Here we introduce a novel readout method for detecting the magnetization direction of a nanoscale magnet by use of a spin-torque oscillator (STO). The principles behind this method are dynamic dipolar coupling between an STO and a nanoscale magnet, and detection of ferromagnetic resonance (FMR) of this coupled system from the STO signal. Because the STO couples with a specific magnet by tuning the STO oscillation frequency to match its FMR frequency, this readout method can selectively determine the magnetization direction of the magnet.