If the SSD is detected by DELL Diagnostic tool but not by your system that doesn't mean the system is affected by virus.
If your computer has multiple SATA slots, try connecting the SSD to a different slot. This can help determine if the issue is with a specific slot.
You may try checking SSD on a different machine,
See:
How to Troubleshoot Hard Drive or Solid-State Drive Issues on a Dell Computer