Simply like so:
lst = ['2 19 2839475239874 hda']
# Extracting the device part
dev = filter(lambda s: s[0] is 'h', lst[0].split())[0]
# Inserting it
cmd = 'dd if=/dev/zero of=/dev/{0} bs=512 count=1'.format(dev)
You will want to check the case where you don't have any h-word in your list though.