How to enable lock screen widgets in HTC One M8?
On my phone I slide my lock screen to the right, and tap the plus button. If you can't find this on your phone, it probably doesn't exist. You can get apps from the app store that customise your lock screen though.