Thank you for reaching out to Dell Community Forum.
Below is the configuration supported on the Optiplex 3040 SFF:
This system supports
So if your system has 1 ODD and you want to add another HDD, then you need to remove the ODD and replace it with the secondary HDD.
Please click my DELL-username and send me a Private Message with the Dell Service Tag number and your email address, if you have any query.
Note: please don't mention the service tag or email id on the public forum as it contains your personal information