If you are using hp servers you could use hpacucli, run the below command:
ctrl all show config detail
The battery pack count should be 1, if 0 then there is no BBWC.
For versions prior 5.0, there is no ESX specific hpacucli package and the linux one needs to be used. You may do a quick google search for it and hopefully good info on it.