If the start date of the new course is no more than 28 days from the expiry date of your current visa you can apply for further leave to remain in the UK.  If the course start date is more than 28 days from the end date of your visa, you have to apply from outside the UK.