Libmii is an in-development library to allow homebrew developers to use Miis in their applications.

http://wiibrew.org/wiki/Libmii#Example