Unmanned aerial vehicles (UAVs) have broad application potential for the Internet of Things (IoT) due to their small size, low cost, and flexible control. At present, the main positioning method for UAVs is the use of GPS. However, GPS positioning may be affected by stronger electromagnetic signals from spoofing attacks. In this study, a radar-assisted positioning method based on 5G millimeter waves is proposed. In 5G end-to-end network slices, the rotors of UAVs can be detected and identified by deploying 5G millimeter wave radar. High-resolution range profile (HRRP) is used to obtain the UAV location in the detection zone. Micro-Doppler characteristics are used to identify the UAVs and the cepstrum method is used to extract the number and speed information of the UAV rotor. The sinusoidal frequency modulation (SFM) parameter optimization method is used to separate multiple UAVs. The proposed method provides information on the number of UAVs, the position of the UAV, the number of rotors, and the rotation speed of each rotor. The simulation results show that the proposed radar detection method is well suited for UAV detection and identification and provides a valid GPS-independent method for UAV tracking.