Hi Aspirant,
Sorry for saying this but there is no such thing as a particular branch of engineering will give you enough time for UPSC preparation. The whole Engineering domain requires the same amount of time and dedication for study irrespective of the branches. However your scenario could be altered to how early you start preparing for UPSC.Some people start preparing for it from 1st year of engineering, some does later. But i will recommend you to start preparing at the least from 3rd year of engineering since by then you will be accomodated with the your branch subjects and curriculums.
For more information on UPSC,refer the link below
https://competition.careers360.com/exams/upsc-civil-services-exam
https://competition.careers360.com/articles/upsc-ias
Hope this helps.
Good luck!!!
College Comparison based on Courses, Placement, Rank, Fee
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile