istextstateenabled ('<window name>', '<text object name>')
Checks whether the text object is in editable state or not.
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/text.c