What applications do you have access to?
In PS, those background bottles are on a different layer, thus you can adjust the blur. If it is done in 3D, the application used probably offers DOF capabilities, if it is a real photo, the DOF was made in camera.