It is theoretically possible, because there are some (undocumented) variables that hold the gate that has been assigned to you ( and to any other airplane, like AI), however they use a weird naming convention, which is not consistent to how the parking spots are in the Navdata, so it will likely be quite unreliable, because we had to do some reverse translation of what is basically a name, into a unique parking/number/suffix, which are all numbers following a precise standard.