Generally, removing the optical drive from a laptop does not require actually opening the laptop case itself. Most often, you'll just need to remove one or two screws which are accessible from the exterior. Then, the drive will either come out with a simple pull, or there will be an ejection mechanism to press.
Many large OEMs have service manuals available on their websites. If the removal process isn't obvious to you from just looking at the laptop, I suggest checking there. I tried looking on HP's website myself, but they do not have anything on a "Pavillion dv5282". Before doing your own search, make sure you got the model number right or try using the auto-detect feature.
Another option, if you just want to leave it in, is to disable it in the OS.
- Run "devmgmt.msc" from the Start Menu, Run dialog, or command line.
- Locate your device in the tree, right-click and select "Disable".