Exchange Time Capsule hard drive with PS4 Hard Drive
It may be possible to put the PS4 drive in the Time Capsule but not vice versa, and not really recommended.

According to this support document from Sony, the PS4 uses a 2.5" hard drive.

According to iFixit guides such as this one for the pizza box model and this one for the newer vertical model the Apple Time Capsule uses 3.5" drives.

So, with an adapter, the Time Capsule drive could work in the PS4, but the PS4 drive won't fit in the Time Capsule.