Display the current keyboard layout using setxkbmap.
Use the following in your i3blocks config:
[key_layout] command=$SCRIPT_DIR/key_layout label=Layout interval=30