On the UPSC application portal’s login page, use the forgot registration ID option.
You can usually retrieve it with your name, date of birth and registered email or mobile number.
Search your email for the confirmation mail sent when you first applied.
If retrieval fails, contact the UPSC facilitation counter with your details.
Download and print the admit card as soon as you recover your ID — it is released only for a limited window.