According to this :
Exit data includes biographic information such as:
date of birth
citizenship or nationality
travel document type, number and name of the country that issued the travel document
So, I assume it'll get your foreign passport ID.