yes! you can easily attend the exam, but its not that easy to clear it, even graduates also. You can try it after getting degree in your hand.... if you really want to clear it for your 1st attempt, go for a quick and best ielts online coaching for more details visit ieltsonlinecoaching (https://ieltsonlinecoaching.in/) .
For your information, their is no age limit criteria for attempting the IELTS / TOEFL exams. The only requirement is that you should have a valid passport and have cleared minimum 10th grade.
So, you are now pursuing B-Tech in second semester, so you can definitely attempt the exam.
Given below are some links which may help you to get other details related to the exams:
Best wishes for your future.