You will have to modify the GDL Script of the Label used for this.
You can set Windows for their Sills to be measured relative to the Floor Level of the current Floor. To get the height value you need you will need to add to this the vertical distance between the floor level and the Project Origin. There are GDL Global variables for this purpose, you will probalby need the GLOB_HSTORY_ELEV variable.
http://www.archicadwiki.com/Global%20GDL%20Parameters#StoryInformation
Be aware that this article is old so some things might work a bit differently with AC12.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28