We performed spin pumping into a Pt wire by using various spin-wave modes excited in a magnetic vortex structure. Radial and azimuthal modes were excited by applying an in-plane radiofrequency magnetic field with a variable frequency. We observed a mode-dependent sign change in the inverse spin Hall voltage induced along the Pt wire. Micromagnetic simulation revealed that the observed behavior reflected the spatial distribution of the spin wave. These findings suggest that spin pumping can be used for the electrical detection of the spatial distribution of confined spin-wave modes in small magnetic structures.