Default Knox warranty, reading the IMEI number

hi Guys,

I have seen somewhere that the we can find if the knox warranty status through programmatically and also any guide which can show how to read and understand the IMEI code.

Or if you can guide me to any source will be great help.

Thanks.