You can get it from the Smart statistics with smartctl -A <device>.
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-229.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
Current Drive Temperature: 30 C
Drive Trip Temperature: 65 C
Manufactured in week 39 of year 2016
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 6
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 35
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 418499985932288
Chad
--
Chad Kerner, Senior Storage Engineer
National Center for Supercomputing Applications
University of Illinois, Urbana-Champaign