Hii Ribhu!
CBSE does have a criteria to provide courses to private candidates under All India/ Delhi senior secondary examination. So, you can join as a private candidate for pursuing hindi and urdu. You can pursue the course from anywhere in the country, UP too. You will get the admission details on CBSE official Website.
http://www.cbse.nic.in/
Hope this helps.
Good luck!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile