Everything that is possible in Java is possible in B4A.
Code:
Dim jo As JavaObject = Button2
Log(jo.RunMethod("getElevation", Null))
It will return 0 as the way the buttons are structured is more complicated. You don't need all of this. The button elevation is 2dip. This is the only view that has built-in elevation.
You can access the panels elevation.