If your X5 is from 2012 or later, pull the lever located in the driver’s side footwell two times. Your hood should pop open.
If your car is an earlier model, pull the lever in the footwell once. Then, walk to the front of your car and reach into the crack between the hood and the frame. Inside, you should feel a small release lever that you’ll need to pull to release the hood completely.