When it is running the workbench layout is held in an internal EMF model which you should not access directly.
Code using the e4 API can query and modify the model using the EModelService
interface.
To understand how all this works you need to read up on Eclipse e4 using a tutorial such as this one
Note: This only applies to Eclipse 4.x, Eclipse 3.x is different.