Does calibre "pull" metadata from the book on the ereader? There is a user_metadata field in the metadata according to the bottom of this page:
https://manual.calibre-ebook.com/gen...plate_ref.html
If the ereader fiddles with that after a book is finished then perhaps you could use that.