I don't know of anything Kotlin-specific, but you should be looking for the API standards "TWAIN" or "SANE". Using SANE on Windows is tricky, so I'd stick with TWAIN. There are some third-party Java libraries but I don't think there's a single one that stands out.