Well, from SAP BW side not that easy J however everything is possible since there is a class CL_RSDDTREX_SERVICE.
For very simple information about BWA release and its revision you can call GET_BIA_RELEASE method:
For little bit more comprehensive information about SP of BW as itself you can call method COMP_BI_SP_BIA_REV.