When SQLite tries to access a locked database, the default is SQLITE_BUSY. The documentation describes how to add custom processing to this event: http://www.sqlite.org/faq.html#q5 .
I understand from the documentation that any function that you call that tries to write to this locked database will simply return SQLITE_BUSY, and this will be your notification that the database is locked.
, , (sqlite3_busy_handler) (sqlite3_busy_timeout), x .
[edit] http://www.sqlite.org/c3ref/io_methods.html , - xCheckReservedLock(), true, . , . - sqlite, . , : http://www.sqlite.org/c3ref/file_control.html