The ECUs can only be flashed a certain number of times before you need to buy a new one...
the DME (as its called in BMW speak) also records peak boost and any warning lights it has shown the customer....
Thats usually enough to find the modifications... and thats only the stuff the dealer can see....
BMW can see MUCH MUCH more...
Alex