Also for this I believe there is the following:

```
sublime.version()
```

Looks like it is referenced in both the SublimeText 2 and 3 Plugin API docs.

http://www.sublimetext.com/docs/2/api_reference.html

http://www.sublimetext.com/docs/3/api_reference.html