In principle, docx4j could do that for you for many fields.
However, there is no code to do so at present.
You'd need code to parse the field codes.
Page number is an example of a challenging one, since to get page numbers right, we'd need Word's page layout model.
Maybe I should add a class which finds the fields for updating, then users such as yourself could contribute implementations for particular fields of interest?