I have a space in the ceiling that looks to be wired for a ceiling fan. It had a plastic cover over it. I did notice that the cover was screwed into wood that I assuming those are the joists. I didn't see any other areas that I could screw in the ceiling fan bracket. Would a pancake box work and then just hang the ceiling fan bracket off of that? It's hard to tell (for me) what is going on in the picture. Thanks
Try to pull the wires out a little more and check the writing on the box. It should tell you if it's ceiling fan rated. Even if it is, it's always good to remove a few screws and make sure it's mounted securely to joists. If it's not rated for a ceiling fan, you'll have to replace it with pancake box or some other ceiling fan rated box. Make sure the power is off before doing any work. Even though you have the wires nutted, you'll need to remove the wire nuts to replace the box. I've seen people get knocked on their butt because they forgot to turn off the power before removing the wire nuts.