You can't get it by name alone. You would also need to know the specific time. Asia/Kolkata
may be fixed to a single offset, but many time zones alternate between standard time and daylight saving time, so you can't just get the offset, you can only get an offset.
For how to do it in JavaScript, see this answerthis answer.