You can book through www.irctc.co.in....
You can also book through reservation counters set up in bigger railway stations in India, if you are already here. One advantage you will get from reservation counters through foreign tourist quota. Incase tickets are not available normally, you can use this quota.