When you read the webpage mentioned above you will find out that you can get data from outside Alice so you can communicate with other applications, users, hardware:
http://www.westga.edu/~drocco/alice/networking.html
With this feature you can have Alice get data from an URL (from an .txt, .xml, or a .php/.asp script)
The other application, user or hardware should write to a file or database which the .php/.asp script located at the URL should read and give the data back to Alice when requested.
Hopefully your Lego NXT can write to a file or database.