All of the temperature readings are pulled from temperature sensors built into each HDD and the DNS-320. Hardware differences, including the sensor location and sensitivity will substantially impact the temperature readings.
Your particular DNS contains three sensors in products from three different manufacturers (D-Link, WD, Samsung). If your two HDDs were both the same make/model, I think you would find that the HDD temperatures would be substantially closer.
Rather than strictly looking at the absolute temperature of your DNS-320 (and HDDs), you should also pay attention to the relative temperature difference (e.g. how much the temperature fluctuates up or down), as this is a good indicator of potential airflow or ambient temperature issues.