I don't think it is possible to detect open edit sessions with Python scripting (because the geoprocessing model is supposed to automatically handle edit sessions on its own), only from within ArcObjects, unless you resort to something hacky like running a tool you know will throw an error without an edit session, trap the error and replace it with your own.