I think in theory there could be 2 techniques :
1) Via b_holding history file
Code:
1000.1.1 = {
effect = {
add_building = unique_building
}
}
1500.1.1 = {
effect = {
remove_building = unique_building
}
}
2) Via technology history:
When starting a new game, a building will be pre-built if the province has higher technology than the building trigger requirement(s) + the value of extra_building_start + a random number 0-1
The starting technology value are per duchy so it might be less precise.