Of course you can.
All of the items you'll need are available in this room.
When in doubt, pick up and move anything you can.
Start by moving the painting toward the left of the screen.
You'll need a way to unlock that safe. Even in Holmes's time, they had remote controls.